package com.luhuiguo.contacts.client.ui;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;
import com.luhuiguo.contacts.client.presenter.ContactsPresenter;

public class ContactsView extends Composite implements ContactsPresenter.Display {

    private static ContactsViewUiBinder uiBinder = GWT.create(ContactsViewUiBinder.class);

    interface ContactsViewUiBinder extends UiBinder<Widget, ContactsView> {
    }

    @UiField
    Button addButton;
    
    
    @Inject
    public ContactsView() {
        initWidget(uiBinder.createAndBindUi(this));
                 
        GWT.log("ContactsView created");
        
    }

    @Override
    public HasClickHandlers getAddButton() {
        return addButton;
    }

    @Override
    public Widget asWidget() {
        return this;
    }


    @Override
    public void addWidget(Widget widget) {
        
    }

    @Override
    public void removeWidget(Widget widget) {
        
    }

    @Override
    public void showWidget(Widget widget) {
        
    }

}
